/*******************************************************************************
 * Copyright (c) 2010 Mikhail Garber.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License (LGPL)
 * which accompanies this distribution
 * 
 * Contributors:
 *     Mikhail Garber - initial API and implementation
 ******************************************************************************/
package plumber.process;

import java.util.Date;
import java.util.concurrent.FutureTask;

import plumber.common.WorkItem;

/**
 * 
 * encapsulates a Work Item ready to be executed
 *
 */
public class FlowTask extends FutureTask<String> {

	public FlowTask(Runnable runnable, String result) {
		super(runnable, result);
		
	}

	private WorkItem item;
	private Date started;
	private int maxSeconds;
	

	public int getMaxSeconds() {
		return maxSeconds;
	}

	public void setMaxSeconds(int maxSeconds) {
		this.maxSeconds = maxSeconds;
	}

	public Date getStarted() {
		return started;
	}

	public void setStarted(Date started) {
		this.started = started;
	}

	public WorkItem getItem() {
		return item;
	}

	public void setItem(WorkItem item) {
		this.item = item;
	}
	
}
